home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / net / RCS / netisr.h,v < prev    next >
Encoding:
Text File  |  1988-06-29  |  1.9 KB  |  88 lines

  1. head     1.2;
  2. access   ;
  3. symbols  ;
  4. locks    ; strict;
  5. comment  @ * @;
  6.  
  7.  
  8. 1.2
  9. date     88.06.29.15.14.20;  author ouster;  state Exp;
  10. branches ;
  11. next     1.1;
  12.  
  13. 1.1
  14. date     88.06.21.16.56.37;  author ouster;  state Exp;
  15. branches ;
  16. next     ;
  17.  
  18.  
  19. desc
  20. @@
  21.  
  22.  
  23. 1.2
  24. log
  25. @Add ifdefs so files won't be processed twice.
  26. @
  27. text
  28. @/*
  29.  * Copyright (c) 1980, 1986 Regents of the University of California.
  30.  * All rights reserved.
  31.  *
  32.  * Redistribution and use in source and binary forms are permitted
  33.  * provided that this notice is preserved and that due credit is given
  34.  * to the University of California at Berkeley. The name of the University
  35.  * may not be used to endorse or promote products derived from this
  36.  * software without specific prior written permission. This software
  37.  * is provided ``as is'' without express or implied warranty.
  38.  *
  39.  *    @@(#)netisr.h    7.3 (Berkeley) 12/30/87
  40.  */
  41.  
  42. #ifndef _NETISR
  43. #define _NETISR
  44.  
  45. /*
  46.  * The networking code runs off software interrupts.
  47.  *
  48.  * You can switch into the network by doing splnet() and return by splx().
  49.  * The software interrupt level for the network is higher than the software
  50.  * level for the clock (so you can enter the network in routines called
  51.  * at timeout time).
  52.  */
  53. #if defined(vax) || defined(tahoe)
  54. #define    setsoftnet()    mtpr(SIRR, 12)
  55. #endif
  56.  
  57. /*
  58.  * Each ``pup-level-1'' input queue has a bit in a ``netisr'' status
  59.  * word which is used to de-multiplex a single software
  60.  * interrupt used for scheduling the network code to calls
  61.  * on the lowest level routine of each protocol.
  62.  */
  63. #define    NETISR_RAW    0        /* same as AF_UNSPEC */
  64. #define    NETISR_IP    2        /* same as AF_INET */
  65. #define    NETISR_IMP    3        /* same as AF_IMPLINK */
  66. #define    NETISR_NS    6        /* same as AF_NS */
  67.  
  68. #define    schednetisr(anisr)    { netisr |= 1<<(anisr); setsoftnet(); }
  69.  
  70. #ifndef LOCORE
  71. #ifdef KERNEL
  72. int    netisr;                /* scheduling bits for network */
  73. #endif
  74. #endif
  75.  
  76. #endif _NETISR
  77. @
  78.  
  79.  
  80. 1.1
  81. log
  82. @Initial revision
  83. @
  84. text
  85. @d15 3
  86. d48 2
  87. @
  88.